package com.ruoyi.teaching.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
 * 班级对象 ya_class
 *
 * @author ruoyi
 * @date 2024-03-30
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("ya_class")
public class Classes
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 课程内容 */
    @Excel(name = "课程内容")
    @TableField("class_name")
    private String className;

    /** 备注信息 */
    @Excel(name = "备注信息")
    @TableField("remarks")
    private String remarks;

    /** 开班日期 */
    @Excel(name = "开班日期")
    @TableField("begin_date")
    private String beginDate;

    /** 休息日 */
    @Excel(name = "休息日")
    @TableField("rest_day")
    private Integer restDay;

    /** 自习日 */
    @Excel(name = "自习日")
    @TableField("self_study_day")
    private Integer selfStudyDay;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("className", getClassName())
                .append("remarks", getRemarks())
                .append("beginDate", getBeginDate())
                .append("restDay", getRestDay())
                .append("selfStudyDay", getSelfStudyDay())
                .toString();
    }
}
